#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include "common.h"
#include "menu.h"

void manager_login(void)
{ 
	char manager_name[4];
	char manager_pwd[7];
	printf("管理员身份验证：\n");
	
	printf("请输入管理员用户名：\n");
	scanf("%s", manager_name);

	printf("请输入密码：\n");
	scanf("%s", manager_pwd);

	if(strcmp(manager_name, "ahr") == 0 && strcmp(manager_pwd, "123456") == 0)
	{	
		printf("验证成功，即将进入主菜单！\n");

		sleep(2);
		system("clear");  // 清屏
		
		first_level_menu();
	}
	else
	{
		printf("验证失败，即将返回上一界面！\n");

		sleep(2);
	}

}

